<?php require_once('templates/header.php')?>
<script>
    $(document).ready(function(){
    $('form').submit(function(){ 
       
      if('' == $("input[name='adminname']").val())
      {
          alert('用户名不能为空！');
          return false;
      }
        
      if($("input[name='password']").val().length < 6)
      {
          alert('密码小于6位！');
          return false;
      }
      
      if($("input[name='password']").val() != $('#ck').val())
      {
          alert('两次密码不一致！');
          return false;
      }
    });
});
</script>
                              
    <div class="center_content"> 
	<?php require_once('templates/left_content.php')?>      
    <div class="right_content">            
        
    <h2>Products Categories Settings</h2> 
                    
                    
         <div class="form">
         <form action="" method="post" class="niceform">
         <input type="hidden" name="id" value="<?php echo $result['id'];?>"/>
                <fieldset>
                    <dl>
                        <dt><label>用户名:</label></dt>
                        <dd><input type="text" name="adminname" id="" size="54" value="<?php echo $result['adminname'];?>" /></dd>
                    </dl>
                    <dl>
                        <dt><label>新密码:</label></dt>
                        <dd><input type="password" name="password" id="" size="54" /></dd>
                    </dl>
                    
                    <dl>
                        <dt><label>重复密码:</label></dt>
                        <dd><input type="password" name="password" size="54" id="ck" /></dd>
                    </dl>
                    <dl>
                    <dl>
                        <dt><label>邮箱:</label></dt>
                        <dd><input type="text" name="email" id="" size="54" value="<?php echo $result['email'];?>" /></dd>
                    </dl>
                    
                    <dl>
                        <dt><label>无需修改请留空！！！</label></dt>
                    </dl>
                    
                     <dl class="submit">
							<input type="hidden" name="act" value="edit"/>
							
							<input class="button" type="submit" value="Submit" />
                     </dl>
                     
                     
                    
                </fieldset>
                
         </form>
         </div> 

     </div><!-- end of right content-->
            
                    
  </div>   <!--end of center content -->               
                    
                    
    
    
    <div class="clear"></div>
    </div> <!--end of main content-->
	
<?php require_once('templates/footer.php')?>   
